/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufpr.tads.Rent.controller;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import br.ufpr.tads.Rent.model.LocacaoDAO;
import br.ufpr.tads.Rent.model.LocacaoDTO;
/**
 *
 * @author NI LINDA
 */
public class Locacao {
    private final LocacaoDAO locacao;
    public Locacao() throws IOException, FileNotFoundException, ClassNotFoundException, SQLException{
        locacao = new LocacaoDAO();
    }
    public void adicionaVeiculo(LocacaoDTO locacaodto) throws SQLException{
        locacao.Locar(locacaodto);
    }
}
